//
//  UIView+PACAAlignment.h
//  高德SDK
//
//  Created by rainimute on 16/8/31.
//  Copyright © 2016年 你问我答. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (PACAAlignment)

- (void)centerToAnotherView:(UIView*)otherView;

- (void)centerInSuperView:(UIView*)superView;

- (void)centerYToAnotherView:(UIView*)otherView;

- (void)centerYInSuperView:(UIView*)superView;

- (void)centerYInSuperView:(UIView*)superView ratio:(double)ratio;

- (void)centerYInSuperView:(UIView*)superView distance:(float)distance;

- (void)centerXToAnotherView:(UIView*)otherView;

- (void)centerXInSuperView:(UIView*)superView;

- (void)centerXInSuperView:(UIView*)superView ratio:(double)ratio;

- (void)centerXInSuperView:(UIView*)superView distance:(float)distance;

- (void)centerYDistanceToAnotherView:(UIView*)otherView distance:(float)distance;

- (void)centerXDistanceToAnotherView:(UIView*)otherView distance:(float)distance;
/*左边距其他view右边的间距*/
- (void)leftDistanceToAnotherView:(UIView*)otherView distance:(float)distance;
/*左边距其他view左边的间距*/
- (void)leftDistanceToAnotherView:(UIView*)otherView leftDistance:(float)distance;
/*右边距其他view左边的间距*/
- (void)rightDistanceToAnotherView:(UIView*)otherView distance:(float)distance;
/*右边距其他view右边的间距*/
- (void)rightDistanceToAnotherView:(UIView*)otherView rightDistance:(float)distance;
/*上边距其他view下边的间距*/
- (void)upDistanceToAnotherView:(UIView*)otherView distance:(float)distance;
/*上边距其他view上边的间距*/
- (void)upDistanceToAnotherView:(UIView*)otherView upDistance:(float)distance;
/*下边距其他view上边的间距*/
- (void)downDistanceToAnotherView:(UIView*)otherView distance:(float)distance;
/*下边距其他view下边的间距*/
- (void)downDistanceToAnotherView:(UIView*)otherView downDistance:(float)distance;

/*改变x*/
- (void)changeXToOtherX:(CGFloat)x;
/*改变y*/
- (void)changeYToOtherY:(CGFloat)y;
/*改变width*/
- (void)changeWidthToOtherWidth:(CGFloat)width;
/*改变height*/
- (void)changeHeightToOtherHeight:(CGFloat)height;
/*修改x*/
- (void)changeXWithDistance:(CGFloat)distance;
/*修改y*/
- (void)changeYWithDistance:(CGFloat)distance;
/*修改width*/
- (void)changeWidthWithDistance:(CGFloat)distance;
/*修改height*/
- (void)changeHeightWithDistance:(CGFloat)distance;

@end







